﻿<%@ Page Title="Pagamento Mensalidade" Language="C#" MasterPageFile="~/gymmaster.Master"
    AutoEventWireup="true" CodeBehind="NovoPagamento.aspx.cs" Inherits="GymMaster.View.Mensalidade.NovoPagamento" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table cellpadding="4" cellspacing="0" style="border-collapse: collapse; width: 98%;"
        class="table" align="center">
        <tr style="border-bottom: 1px; border-bottom-style: inset;">
            <td colspan="2" style="height: 30px; line-height: 30px;">
                <table style="width: 98%;" align="center">
                    <tr>
                        <td style="height: 24px">
                            <asp:Label ID="lblSexo" runat="server" Text="Sexo: "></asp:Label>
                            <asp:DropDownList ID="ddlSexo" runat="server">
                            </asp:DropDownList>
                        </td>
                        <td colspan="2" style="height: 24px;">
                            <asp:Label ID="lblAluno" runat="server" Text="Aluno: "></asp:Label>
                            <asp:DropDownList ID="ddlAluno" runat="server">
                            </asp:DropDownList>
                        </td>
                        <td style="height: 24px">
                            <asp:Label ID="lblMatricula" runat="server" Text="Matricula: "></asp:Label><asp:DropDownList
                                ID="ddlMatricula" runat="server">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 120px">
                            <asp:Button ID="btnBuscar" runat="server" Text="Buscar" CssClass="button" OnClick="btnBuscar_Click" />
                        </td>
                        <td colspan="2" align="left" style="color: Red; font-size: 15px;">
                            <asp:Literal ID="FailureText" runat="server" EnableViewState="False" Visible="False"></asp:Literal>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="center" style="padding-left: 20px;">
                <asp:Panel ID="pnlConteudoInicio" runat="server" Visible="true">
                    <p style="font-size: 25px;">
                        Para iniciar, selecione um Aluno.
                    </p>
                </asp:Panel>
                <!-- Inicio -->
                <asp:Panel ID="pnlMensalidadeMenu" runat="server" Visible="false">
                    <table style="height: 210px">
                        <tr>
                            <td style="width: 45%" align="right">
                                <asp:Label ID="lblValor" runat="server" Text="Valor Mensalidade:"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtValor" runat="server" Width="250px" Class="moeda" MaxLength="8"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtValor"
                                    ValidationGroup="valAvaliacao">* Campo obrigatório.</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 45%" align="right">
                                <asp:Label ID="lblRefente" runat="server" Text="Referente a:"></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtReferente" runat="server" Width="250px" MaxLength="100"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtReferente"
                                    ValidationGroup="valAvaliacao">* Campo obrigatório.</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" align="center">
                                <asp:Label ID="lblOk" runat="server" Text="Registro gravado com sucesso!" Visible="false"
                                    ForeColor="Red"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" colspan="2">
                                <asp:Button ID="btnCancelar" runat="server" CssClass="button" Text="Cancelar" />
                                &nbsp&nbsp&nbsp&nbsp&nbsp
                                <asp:Button ID="btnCadastrar" runat="server" CommandName="Submit" CssClass="button"
                                    Text="Efetuar Pagamento" ValidationGroup="CreateUserWizard1" OnClick="btnCadastrar_Click" />
                                &nbsp&nbsp&nbsp&nbsp&nbsp
                                <asp:Button ID="btnImprimirComprovante" runat="server" CommandName="Submit" CssClass="button"
                                    Text="Imprimir Comprovante" ValidationGroup="CreateUserWizard1" Visible="false" />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
                <!-- Pagamento -->
            </td>
        </tr>
    </table>
</asp:Content>
